home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Examples / EnterpriseObjects / DistributedEO / AppManager.h next >
Encoding:
Text File  |  1995-02-17  |  1.5 KB  |  55 lines

  1. /*
  2.    AppManager.h created by enoyau on Fri 13-Jan-1995
  3.  
  4.    You may freely copy, distribute, and reuse the code in this example.
  5.    NeXT disclaims any warranty of any kind, expressed or implied, as to its
  6.    fitness for any particular use.
  7. */
  8. // AppManager is responsible for initializing the objects used in the
  9. // program, such as DEONotificationCenter.
  10. // AppManager communicates with EOF by being the delegate of EODatabaseChannel
  11. // and EOAdaptorContext.
  12.  
  13. #import <appkit/appkit.h>
  14. #import <eoaccess/eoaccess.h>
  15. #import <eointerface/eointerface.h>
  16.  
  17. #import "DEONotificationCenter.h"
  18. #import "DEONotification.h"
  19.  
  20. @interface AppManager : Object
  21. {
  22.     id eoController;
  23.     id lockButton;
  24.     id tableView;
  25.  
  26.     DEONotificationCenter *deoNotificationCenter;
  27.     NSMutableArray *transactions;
  28.     NSString *lockString; // Unique identifier made of username, hostname and pid
  29.     BOOL needRedisplay; // YES - need to redisplay when user has finished editing. NO is default
  30.        
  31. }
  32.  
  33. - (void)databaseChange:(DEONotification *)notification;
  34. - toggleLockOnSelection:sender;
  35. @end
  36.  
  37. @interface AppManager(EOApplicationDelegate)
  38. - appDidInit:sender;
  39. - appWillTerminate:sender;
  40. @end
  41.  
  42. @interface AppManager(EOControllerDelegate)
  43. - (void)controllerDidChangeSelection:(EOController *)controller;
  44. @end
  45.  
  46. @interface AppManager(EODatabaseChannelDelegate)
  47. - (void)databaseChannel:channel didUpdateObject:anEO;
  48. @end
  49.  
  50. @interface AppManager(EOAdaptorContextDelegate)
  51. - (void)adaptorContextDidBegin:context;
  52. - (void)adaptorContextDidCommit:context;
  53. - (void)adaptorContextDidRollback:context;
  54. @end
  55.